package day5;

public class Test1 {
    //属性
    public int age;
     public  String name;


    //方法
    public void setAge(int age){
        this.age = age;
    }

    //无参构造器
    public Test1() {
    }
    //单参构造器

    public Test1(int age) {
        this.age = age;
    }

    //全参构造器
    public Test1(int age, String name) {
        this.age = age;
        this.name = name;
    }
}
